package cn.anl.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 授权记录
 * </p>
 *
 * @author Anl
 * @since 2024-06-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("oauth_approvals")
public class OauthApprovals implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 登录的用户名
     */
    private String userId;

    /**
     * 客户端ID
     */
    private String clientId;

    /**
     * 申请的权限
     */
    private String scope;

    /**
     * 状态(Approve或Deny)
     */
    private String status;

    /**
     * 过期时间
     */
    private LocalDateTime expiresAt;

    /**
     * 最终修改时间
     */
    private LocalDateTime lastModifiedAt;


}
